<template>
  <div class="device-import">
    <basic-import :columns="columns"
                  :api="api"
                  :template-url="templateUrl"
                  templateName="DeviceImport" />
  </div>
</template>

<script>
import BasicImport from "./BasicImport";
import { equipment } from "@/api/index";
export default {
  name: "DeviceImport",
  components: { BasicImport },
  data () {
    return {
      columns: [
        {
          label: "*设备编码",
          name: "devCode",
          type: "input-device"
        },
        {
          label: "*是否在公司",
          name: "inHome",
          enumArr: ["是", "否"],
          type: "enum"
        }
      ],
      templateUrl: "/excelTemplate/设备是否回收导入模板.xls",
      api: equipment
    };
  }
};
</script>

<style></style>
